package com.liao.mapper;

import com.liao.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Collection;
import java.util.HashSet;
import java.util.List;

public interface UserMapper {//com.liao.mapper.UserMapper
    /*对应UserMapper.xml的那句select语句的id*/
    List<User> selectAll();

    @Select("select * from tb_user where id = #{id}")//配置文件或这样子的注解随你喜欢
    User selectById(int id);



//    User select(Collection collection);

    User select(@Param("arg0") String username, @Param("param2") String password);
}
